<?php

/**
 *
 * User: chenjunliang@star-net.cn
 * Time: 2017/10/31 9:56
 */

namespace app\console\swooletask\task\inventory;

class InitCompanyTask {
    /**
     * swoole task执行触发入口
     * @param $serv
     * @param $data
     */
    public function index($serv,$data) {

        $serv->task([
            'class'  => '\app\console\swooletask\logic\InitCompany',
            'action' => 'initCompanyInventory',
            'datas'  => $data
        ]);
    }
}